#!/usr/bin/php
<?php
@ob_end_clean();

$db = mysql_connect('localhost', 'peter', '290echo263');
$query = ("SELECT COUNT(*) FROM managing_test.feedback_feedback");

$result = mysql_query($query);

if (!$result) {
    echo('broken query');
    exit(1);
}

if ($result == 0) {
    echo("table is empty - we're losing money!!");
    exit(2);
}

if ($result > 0) {
    echo 'all is good';
}

mysql_free_result($result);

?>
